package com.sen.common.widget;

/**
 * @author sen
 */
public enum Events {
	
	// 点击事件
	CLICK("onclick"),
	// 双击事件
	DBLCLICK("ondblclick"),

	CHANGE("onchange"), 
	PROPERTYCHANGE("onpropertychange"),

	// 键盘事件
	KEYDOWN("onkeydown"), 
	KEYUP("onkeyup"), 
	KEYPRESS("onkeypress"),
	
	// 鼠标事件
	MOUSEDOWN("onmousedown"), 
	MOUSEUP("onmouseup"), 
	MOUSEMOVE("onmousemove"), 
	MOUSEOVER("onmouseover"), 
	MOUSEOUT("onmouseout"),
	
	// 焦点事件
	FOCUS("onfocus"), 
	BLUR("onblur");

	private String event;	
	private Events(String event) {
		this.event = event;
	}

	public Attribute event(String functions) {
		return new Attribute().attr(event, functions);
	}
}
